﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace WinnerCMS.CacheStorager
{
    public class CacheAttribute : AspectAttribute
    {
        private readonly static PropertyInfo[] Properties = typeof(CacheAttribute).GetProperties(BindingFlags.Public | BindingFlags.Instance);

        public CacheAttribute()
        {
            
        }

        public string CacheKey { get; set; }

        public int DurationMinutes { get; set; }

        protected override PropertyInfo[] PropertiesInfo
        {
            get { return Properties; }
        }
    }
}
